package com.yunban.project.template.model.domain;

import com.baomidou.mybatisplus.annotation.*;
import net.lab1024.sa.base.ProjectConstants;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author: lijiajun
 * @date: 2024-11-07
 * @version: 1.0
 */
@Data
@Schema(description = "word抽取解码器")
@TableName(ProjectConstants.TEMPLATE_TABLE_PREFIX + "decoder")
public class Decoder implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    @Schema(description = "主键ID")
    private Long id;

    @Schema(description = "抽取名称")
    private String name;

    @Schema(description = "抽取脚本")
    private String code;

    @Schema(description = "path")
    private String path;

    @Schema(description = "状态")
    private boolean state = false;

    @Schema(description = "创建者ID")
    private long creator;

    @Schema(description = "最近修改人")
    private long updateCreator;

    @Schema(description = "执行顺序")
    private int executeOrder;

    @Schema(description = "规则描述")
    @TableField(value = "`desc`")
    private String desc;

    @Schema(description = "截图")
    private String img;

    @Schema(description = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;
}
